<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        
        function getInfo() {
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    resolve('用户数据')
                }, 1500);
            })
        }

        // await getInfo().then(value => console.log(value));
        // console.log('后续操作..')


        async function afterInfo() {
            await getInfo().then(value => console.log(value));
            console.log('后续操作..')
        }
        
        afterInfo();
    </script>

</body>
</html>